package cn.com.b2office.service.impl;

import java.util.List;
import java.util.Map;

import cn.com.b2office.dao.DeliveryDao;
import cn.com.b2office.domain.DeliveryFee;
import cn.com.b2office.domain.DeliveryMode;
import cn.com.b2office.service.DeliveryService;

public class DeliveryServiceImpl implements DeliveryService {

	private DeliveryDao deliveryDao = null;

	public DeliveryFee calculateDeliveryFee(int deliveryMode, double money) {
		return deliveryDao.findDeliveryFee(deliveryMode, money);
	}

	public List<DeliveryMode> findAllDeliveryMode() {
		return deliveryDao.findAllDeliveryMode();
	}

	public void setDeliveryDao(DeliveryDao deliveryDao) {
		this.deliveryDao = deliveryDao;
	}

	public Map<Integer, DeliveryFee> calculateDeliveryFee(double money) {
		// TODO Auto-generated method stub
		return null;
	}

	public DeliveryMode getDeliveryMode(int modeId) {
		return deliveryDao.getDeliveryMode(modeId);
	}

}
